gtk4.git
12 years agoGtkColorSwatch: Set an accessible role
Matthias Clasen [Sat, 4 Jan 2014 23:51:23 +0000 (18:51 -0500)]
GtkColorSwatch: Set an accessible role

And update the colorchooser a11y test to a) use GtkColorChooser
instead of the deprecated GtkColorSelection and b) match this
change. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721045

12 years agotestbbox: Remove unused variable
Colin Walters [Sat, 4 Jan 2014 22:52:22 +0000 (17:52 -0500)]
testbbox: Remove unused variable

This was the only compiler warning in Continuous for gtk3.

12 years agoGtkInfoBar: Set a more accurate accessible role
Matthias Clasen [Sat, 4 Jan 2014 22:44:14 +0000 (17:44 -0500)]
GtkInfoBar: Set a more accurate accessible role

And update the a11y tests to match. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721042

12 years agoGtkDrawingArea: Set an accessible role
Matthias Clasen [Sat, 4 Jan 2014 22:36:19 +0000 (17:36 -0500)]
GtkDrawingArea: Set an accessible role

And update the a11y tests to match. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721040

12 years agoTrivial formatting fix
Matthias Clasen [Sat, 4 Jan 2014 22:36:10 +0000 (17:36 -0500)]
Trivial formatting fix

12 years agoUpdated Czech translation
Marek Černocký [Sat, 4 Jan 2014 21:57:38 +0000 (22:57 +0100)]
Updated Czech translation

12 years agoDeal with broken _NET_WORKAREA more gracefully
Matthias Clasen [Sat, 4 Jan 2014 20:15:00 +0000 (15:15 -0500)]
Deal with broken _NET_WORKAREA more gracefully

fvwm seems to have problems keeping _NET_WORKAREA in sync with
the number of desktops. Instead of reading garbage, silently use
the full screen as workarea for desktops that are not covered
by the _NET_WORKAREA property.

https://bugzilla.gnome.org/show_bug.cgi?id=698248

12 years agox11: Avoid a possible memory leak in an error case
Matthias Clasen [Sat, 4 Jan 2014 20:13:51 +0000 (15:13 -0500)]
x11: Avoid a possible memory leak in an error case

If _NET_WORKAREA is set to nonsensical values, we should still
free the memory before returning.

12 years agoTrivial typo fix
Matthias Clasen [Sat, 4 Jan 2014 19:11:55 +0000 (14:11 -0500)]
Trivial typo fix

12 years agogtk: remove unused GTK_BUTTONBOX_DEFAULT_STYLE from gtkenums.h tests: remove GTK_BUTT...
Clayton Walker [Wed, 1 Jan 2014 23:38:37 +0000 (00:38 +0100)]
gtk: remove unused GTK_BUTTONBOX_DEFAULT_STYLE from gtkenums.h tests: remove GTK_BUTTONBOX_DEFAULT_STYLE from testbbox.c and fix crashing

https://bugzilla.gnome.org/show_bug.cgi?id=721317

12 years agoGtkNotebook: Fix a problem with tab states
Matthias Clasen [Sat, 4 Jan 2014 18:01:49 +0000 (13:01 -0500)]
GtkNotebook: Fix a problem with tab states

When replacing the tab label, we were not adding the
active-page style class. Fix that.

12 years agoRaleigh: Improve notebook tab theming
Matthias Clasen [Sat, 4 Jan 2014 17:40:34 +0000 (12:40 -0500)]
Raleigh: Improve notebook tab theming

The theme was not kept up-to-date when notebook tabs were
recently refactored. Fix it to show some indication of the
active tab.

12 years agoRaleigh: Improve scale theming
Matthias Clasen [Sat, 4 Jan 2014 17:12:14 +0000 (12:12 -0500)]
Raleigh: Improve scale theming

Add some visual indication for fine adjustment mode in scales
and scrollbars.

12 years agoRaleigh: Improve titlebar appearance
Matthias Clasen [Sat, 4 Jan 2014 16:52:02 +0000 (11:52 -0500)]
Raleigh: Improve titlebar appearance

The default theme wasn't kept up-to-date as the header bar
and titlebar theming was tweaked. Update it to look non-broken,
at least.

12 years agoGtkAboutDialog: be consistent about link activation
Matthias Clasen [Sat, 4 Jan 2014 16:08:29 +0000 (11:08 -0500)]
GtkAboutDialog: be consistent about link activation

As pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721394,
links in the credits part were not going through the
::link-activated signal. Fix that.

12 years agoTrivial grammar fix
Matthias Clasen [Sat, 4 Jan 2014 15:57:46 +0000 (10:57 -0500)]
Trivial grammar fix

12 years agoGtkLabelAccessible: reorganize the code
Matthias Clasen [Sat, 4 Jan 2014 15:47:22 +0000 (10:47 -0500)]
GtkLabelAccessible: reorganize the code

Separate the GtkLabelAccessible, GtkLabelAccessibleLink and
GtkLabelAccessibleLinkImpl implementations more clearly.

12 years agoGtkLabelAccessible: update state of links
Matthias Clasen [Sat, 4 Jan 2014 14:43:23 +0000 (09:43 -0500)]
GtkLabelAccessible: update state of links

This commit makes the LinkImpl children of label accessibles
inherit all their state, except for focused and visited, which
are handled directly.

https://bugzilla.gnome.org/show_bug.cgi?id=721406

12 years agoa11y tests: Add a test for multi-link labels
Matthias Clasen [Sat, 4 Jan 2014 03:02:16 +0000 (22:02 -0500)]
a11y tests: Add a test for multi-link labels

12 years agoGtkLabelAccessible: Implement AtkHypertext
Matthias Clasen [Sat, 4 Jan 2014 03:59:37 +0000 (22:59 -0500)]
GtkLabelAccessible: Implement AtkHypertext

This commit makes the label accessible implement AtkHypertext,
which returns a AtkHyperlink object for each link in the text.
At the same time, add AtkHyperlinkImpl objects as children
to the label accessible.

Also some private API to indicate that links have changed, and
call that from GtkLabel when needed.

Adjust expected output of the affected a11y tests.

https://bugzilla.gnome.org/show_bug.cgi?id=721410
https://bugzilla.gnome.org/show_bug.cgi?id=721421

12 years agoGtkLabel: Add private api for links
Matthias Clasen [Sat, 4 Jan 2014 02:00:44 +0000 (21:00 -0500)]
GtkLabel: Add private api for links

This exposes enough information to implement the AtkHyperText
interface.

More private link api

12 years agoAdd a gtklabelprivate.h header
Matthias Clasen [Sat, 4 Jan 2014 01:44:21 +0000 (20:44 -0500)]
Add a gtklabelprivate.h header

For now, move the few private functions from gtklabel.h here.

12 years agoa11y tests: Prepare to dump AtkHypertext
Matthias Clasen [Sat, 4 Jan 2014 01:34:22 +0000 (20:34 -0500)]
a11y tests: Prepare to dump AtkHypertext

This will be used for links in labels soon.
As a side-effect, the output for AtkHyperlinkImpl changes
slightly. Update expected output accordingly.

12 years agoGtkLinkButtonAccessible: fix broken AtkHyperlink implementation
Matthias Clasen [Sat, 4 Jan 2014 02:58:31 +0000 (21:58 -0500)]
GtkLinkButtonAccessible: fix broken AtkHyperlink implementation

The get_end_index implementation was casting the accessible
to AtkText even though GtkLinkButtonAccessible does not
implement this interface. This did not show up in the a11y
tests because the they were not dumping the affected AtkHyperlinkImpl
properties. Oops.

12 years agoDeprecated the decoration-button-layout style property
Matthias Clasen [Fri, 3 Jan 2014 21:19:54 +0000 (16:19 -0500)]
Deprecated the decoration-button-layout style property

This is now done via a setting + regular property, for
better control, and the style property is ignored.

12 years agoUpdate Chinese simplified translation
Tong Hui [Sat, 4 Jan 2014 09:12:24 +0000 (17:12 +0800)]
Update Chinese simplified translation

12 years agoGtkMenuTracker: tweak separator logic
Ryan Lortie [Fri, 27 Dec 2013 03:45:03 +0000 (22:45 -0500)]
GtkMenuTracker: tweak separator logic

Ignacio Casal Quinteiro reported a problem whereby an empty section at
the start of a menu has a separator placed after it.  This was caused by
the implementation of the logic that separators should be inserted at
the top of all non-empty sections that are not the first section.  This
logic is obviously incorrect in the case that the first section is empty
(in which case we would not expect to see a separator at the top of the
second section).

Change the logic so that we only insert separators when we see a
non-zero number of actual items in the menu before us.

https://bugzilla.gnome.org/show_bug.cgi?id=721119

12 years agoUpdated Lithuanian translation
Aurimas Černius [Fri, 3 Jan 2014 21:28:45 +0000 (23:28 +0200)]
Updated Lithuanian translation

12 years agoUpdated Brazilian Portuguese translation for UI
Rafael Ferreira [Fri, 3 Jan 2014 07:46:30 +0000 (05:46 -0200)]
Updated Brazilian Portuguese translation for UI

12 years agoUpdated Brazilian Portuguese translation for Properties
Rafael Ferreira [Fri, 3 Jan 2014 07:43:56 +0000 (05:43 -0200)]
Updated Brazilian Portuguese translation for Properties

12 years agoconfigure: use CFLAGS, etc. _FOR_BUILD as well
Ryan Lortie [Thu, 2 Jan 2014 17:00:10 +0000 (12:00 -0500)]
configure: use CFLAGS, etc. _FOR_BUILD as well

When not doing cross-builds, use the values of CFLAGS, CPPFLAGS and
LDFLAGS as the default value for CFLAGS_FOR_BUILD, CPPFLAGS_FOR_BUILD
and LDFLAGS_FOR_BUILD, respectively.

This avoids having to manually specify these variables in order to get
extract-strings to build properly.

This should really be handled by ax_prog_cc_for_build.m4.  That has been
reported upstream.  This is a workaround for now.

https://bugzilla.gnome.org/show_bug.cgi?id=721346

12 years agowindow: Document GtkWindow::set-focus
Colin Walters [Thu, 2 Jan 2014 23:40:17 +0000 (18:40 -0500)]
window: Document GtkWindow::set-focus

Not sure why this was never documented.

12 years agoGtkApplicationX11: read the startup ID from the platform data
Giovanni Campagna [Wed, 1 Jan 2014 15:53:31 +0000 (16:53 +0100)]
GtkApplicationX11: read the startup ID from the platform data

If the platform data passed with actions and activations includes
a startup notify ID, we should read it and pass it down to GDK.
This ensures that the right startup notify is completed after the
signal emission, and that the user time of the GdkDisplay is properly
updated (which in turn makes sure the windows are not subjected
to focus-stealing-prevention)

https://bugzilla.gnome.org/show_bug.cgi?id=721304

12 years agoUpdate Chinese simplified translation for gtk-properties
Tong Hui [Wed, 1 Jan 2014 11:01:29 +0000 (19:01 +0800)]
Update Chinese simplified translation for gtk-properties

12 years agoRevert "Update Chinese simplified translation"
Wylmer Wang [Wed, 1 Jan 2014 10:32:10 +0000 (18:32 +0800)]
Revert "Update Chinese simplified translation"

This reverts commit 410d09ee4ee4ab0ad4440d07f09d532a52e6acc6.

Undo mistaken push of Chinese simplified translation

12 years agoUpdate Chinese simplified translation
Tong Hui [Wed, 1 Jan 2014 09:53:58 +0000 (17:53 +0800)]
Update Chinese simplified translation

12 years agoUpdated German translation
Christian Kirbach [Tue, 31 Dec 2013 17:08:26 +0000 (18:08 +0100)]
Updated German translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 30 Dec 2013 10:58:05 +0000 (11:58 +0100)]
Updated Spanish translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 30 Dec 2013 10:57:52 +0000 (11:57 +0100)]
Updated Spanish translation

12 years agoRework the Visual Studio 2010 Projects a bit
Chun-wei Fan [Mon, 30 Dec 2013 05:17:43 +0000 (13:17 +0800)]
Rework the Visual Studio 2010 Projects a bit

Add a utility project to get config.h and gdkconfig.h from their *.h.win32
(or win32_broadway, if applicable) counterparts, using custom build rules,
so that these "generated" files can also be removed on clean and
"regenerated" upon update.  This also enables the removal of configs in
certain projects that isn't really needed as a result.

Also update and merge the projects and property sheets to include a single
property sheet that it needs, which will then in turn include the other
property sheets that is needed, so that things are cleaner.

12 years agoRework the Visual Studio 2008 Projects a bit
Chun-wei Fan [Mon, 30 Dec 2013 04:07:34 +0000 (12:07 +0800)]
Rework the Visual Studio 2008 Projects a bit

Add a utility project to get config.h and gdkconfig.h from their *.h.win32
(or win32_broadway, if applicable) counterparts, using custom build rules,
so that these "generated" files can also be removed on clean and
"regenerated" upon update.  This also enables the removal of configs in
certain projects that isn't really needed as a result.

Also update and merge the projects and property sheets to include a single
property sheet that it needs, which will then in turn include the other
property sheets that is needed, so that things are cleaner.

Updates to the Visual Studio 2010 projects will follow later.

12 years agoUpdated Galician translations
Fran Diéguez [Sun, 29 Dec 2013 23:11:25 +0000 (00:11 +0100)]
Updated Galician translations

12 years agoUpdated Galician translations
Fran Diéguez [Sun, 29 Dec 2013 22:59:30 +0000 (23:59 +0100)]
Updated Galician translations

12 years agotreeview: Track area in cell that editable occupies
Benjamin Otte [Sat, 28 Dec 2013 14:41:13 +0000 (15:41 +0100)]
treeview: Track area in cell that editable occupies

With multiple renderers per cell, editables shouldn't occupy the whole
cell's area.

https://bugzilla.gnome.org/show_bug.cgi?id=710315

12 years agoUpdated Greek translation po-properties
Dimitris Spingos [Thu, 26 Dec 2013 16:40:01 +0000 (18:40 +0200)]
Updated Greek translation po-properties

12 years agoUpdate the gtk3-demo Visual C++ Projects
Chun-wei Fan [Thu, 26 Dec 2013 08:23:14 +0000 (16:23 +0800)]
Update the gtk3-demo Visual C++ Projects

Add the sources of the headerbar and event_axes demos to the list of files
to build.

12 years agogtk/gtkapplication.c: Don't Include unistd.h Unconditionally
Chun-wei Fan [Thu, 26 Dec 2013 08:15:10 +0000 (16:15 +0800)]
gtk/gtkapplication.c: Don't Include unistd.h Unconditionally

This header, which is not universally available, is accidently made to be
included unconditionally during the refactoring of gtkapplication.c,
so restore the #ifdef check.

12 years ago[l10n] Updated Italian translation.
Milo Casagrande [Tue, 24 Dec 2013 08:03:52 +0000 (09:03 +0100)]
[l10n] Updated Italian translation.

12 years agoUpdated POTFILES.skip
Piotr Drąg [Sun, 22 Dec 2013 19:30:49 +0000 (20:30 +0100)]
Updated POTFILES.skip

12 years agoRedo header bar decorations once more
Matthias Clasen [Sun, 22 Dec 2013 02:58:24 +0000 (21:58 -0500)]
Redo header bar decorations once more

Applications need a way to fix or adapt the decoration layout,
for situations like split header bars. Setting the layout from
the theme with a style property did not offer a good way to do
this, and the ::show-close-button property does not provide
fine-grained control.

To improve the situation, move the layout string to a property of
GtkHeaderBar which is backed by a setting. This allows platforms to
set a default button layout independent of the theme, while applications
can override the default.

The style GtkWindow style property is now deprecated and ignored.

12 years agoFix a few warnings
Matthias Clasen [Fri, 20 Dec 2013 20:15:31 +0000 (15:15 -0500)]
Fix a few warnings

12 years agoAllow close buttons on dialogs
Matthias Clasen [Fri, 20 Dec 2013 18:24:12 +0000 (13:24 -0500)]
Allow close buttons on dialogs

It was a long-standing problem for some users of GtkDialog that
there is no guaranted way to close it. So, lets show a close
button.

12 years agoImprove menubutton a11y
Matthias Clasen [Fri, 20 Dec 2013 15:58:32 +0000 (10:58 -0500)]
Improve menubutton a11y

The button now claims its menu as a child for a11y purposes,
which makes it possible for ATs to see it when the navigate
the tree top-down.

Update the a11y test to match.

12 years agoAdd a menubutton to the a11y tests
Matthias Clasen [Fri, 20 Dec 2013 14:06:33 +0000 (09:06 -0500)]
Add a menubutton to the a11y tests

12 years agoSet an accessible name on menu buttons
Matthias Clasen [Fri, 20 Dec 2013 14:05:43 +0000 (09:05 -0500)]
Set an accessible name on menu buttons

These commonly have just an image in them, so lets at least
call them 'Menu'.

12 years agoUpdated Greek translation
Dimitris Spingos [Fri, 20 Dec 2013 13:27:53 +0000 (15:27 +0200)]
Updated Greek translation

12 years agoUpdated Russian translation
Stas Solovey [Thu, 19 Dec 2013 19:10:26 +0000 (23:10 +0400)]
Updated Russian translation

12 years agoGtkPlacesSidebar: Don't show desktop if its home
Matthias Clasen [Thu, 19 Dec 2013 16:22:02 +0000 (11:22 -0500)]
GtkPlacesSidebar: Don't show desktop if its home

We go to extra length to set the desktop_uri to NULL when
desktop == home, but then we were adding the (non-functional)
place item anyway. Don't do that.

12 years agoGtkPlacesSidebar: avoid a crash
Matthias Clasen [Thu, 19 Dec 2013 13:16:30 +0000 (08:16 -0500)]
GtkPlacesSidebar: avoid a crash

Be more careful when comparing uris during DND - they may
be NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=720264

12 years agocell-renderer: Check for NULL return in vfunc start_editing()
Jonh Wendell [Mon, 16 Dec 2013 19:31:50 +0000 (17:31 -0200)]
cell-renderer: Check for NULL return in vfunc start_editing()

This virtual function may return NULL, so, let's check if that's
the case and exit the function apropriately.

https://bugzilla.gnome.org/show_bug.cgi?id=720554

12 years agoprinting: Don't leak http connection to CUPS
Marek Kasik [Mon, 16 Dec 2013 15:44:58 +0000 (16:44 +0100)]
printing: Don't leak http connection to CUPS

Close http connection to CUPS after execution
of request which created it.

https://bugzilla.gnome.org/show_bug.cgi?id=720535

12 years agoUpdated Galician translations
Fran Diéguez [Thu, 19 Dec 2013 00:41:14 +0000 (01:41 +0100)]
Updated Galician translations

12 years agogdkwindow: Don't add the same window to "update_windows" twice
Marek Kasik [Wed, 18 Dec 2013 11:23:28 +0000 (12:23 +0100)]
gdkwindow: Don't add the same window to "update_windows" twice

This prevents passing of such window to another GMainLoop.

https://bugzilla.gnome.org/show_bug.cgi?id=711552

12 years agoGtkColorSelection: Don't leak a context menu
Matthias Clasen [Wed, 18 Dec 2013 04:26:16 +0000 (23:26 -0500)]
GtkColorSelection: Don't leak a context menu

This was pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=720401

12 years agoFix a compiler warning
Matthias Clasen [Wed, 18 Dec 2013 04:25:21 +0000 (23:25 -0500)]
Fix a compiler warning

12 years agoGtkAppChoserWidget: Don't leak the context menu
Matthias Clasen [Wed, 18 Dec 2013 04:20:34 +0000 (23:20 -0500)]
GtkAppChoserWidget: Don't leak the context menu

This was pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=720401

12 years agoUpdate config.h.win32.in for Visual C++ 2013
Chun-wei Fan [Wed, 18 Dec 2013 03:41:53 +0000 (11:41 +0800)]
Update config.h.win32.in for Visual C++ 2013

A number of C99 math.h functions, along with inttypes.h were included for
Visual C++ 2013, along with much improved C99 capabilities, so update
config.h.win32.in to reflect this.

12 years agoRemove an unneeded include
Matthias Clasen [Wed, 18 Dec 2013 03:41:27 +0000 (22:41 -0500)]
Remove an unneeded include

12 years agoGtkAppChooserDialog: Add a 'Software' button
Matthias Clasen [Wed, 18 Dec 2013 02:23:05 +0000 (21:23 -0500)]
GtkAppChooserDialog: Add a 'Software' button

Add a simple button that launches GNOME Software.

12 years agoGtkAppChooser: Drop PackageKit integration
Matthias Clasen [Wed, 18 Dec 2013 01:49:28 +0000 (20:49 -0500)]
GtkAppChooser: Drop PackageKit integration

This will come back in a simpler form in the next
commit.

12 years agoGtkAppChooserWidget: Monitor installed applications
Matthias Clasen [Wed, 18 Dec 2013 01:34:37 +0000 (20:34 -0500)]
GtkAppChooserWidget: Monitor installed applications

This uses the new GAppInfoMonitor object in GIO, which provides
change notification when the set of installed applications changes.

12 years agoGtkStyleContext: Invalidate contexts with a path
Volker Sobek [Tue, 17 Dec 2013 23:04:59 +0000 (00:04 +0100)]
GtkStyleContext: Invalidate contexts with a path

Fixes a tiny typo in commit f51c9d4154ba1ce4f20f7c4b7f705fe2756cb8ab
which manifested itself in GtkSpinButton's panels being drawn with an
incorrect, not updated state.

This patch took me more hours than you might think! :P

https://bugzilla.gnome.org/show_bug.cgi?id=709491

12 years agoBump version
Matthias Clasen [Tue, 17 Dec 2013 12:55:19 +0000 (07:55 -0500)]
Bump version

12 years ago3.11.3
Matthias Clasen [Tue, 17 Dec 2013 11:13:55 +0000 (06:13 -0500)]
3.11.3

12 years agoFix extraction of some translatable strings
Matthias Clasen [Tue, 17 Dec 2013 12:35:10 +0000 (07:35 -0500)]
Fix extraction of some translatable strings

The reason why some of the strings in gtkprintunixdialog.ui
were missing is that we did not extract translatable string
from <item> elements. Fix that.

12 years agoFix make dist
Matthias Clasen [Tue, 17 Dec 2013 11:42:58 +0000 (06:42 -0500)]
Fix make dist

12 years ago[l10n] Updated Italian translation.
Milo Casagrande [Tue, 17 Dec 2013 08:23:31 +0000 (09:23 +0100)]
[l10n] Updated Italian translation.

12 years agoFix accessibility tests for real
Matthias Clasen [Tue, 17 Dec 2013 01:39:00 +0000 (20:39 -0500)]
Fix accessibility tests for real

The character count had to be updated as well.

12 years agoGtkHeaderBar: Fix allocation of start and end boxes
Matthias Clasen [Tue, 17 Dec 2013 01:36:22 +0000 (20:36 -0500)]
GtkHeaderBar: Fix allocation of start and end boxes

We were giving these boxes too much width, consuming what
was supposed to be the spacing between the boxes and the
other content of the header bar.

12 years agotesttitlebar: Add custom content
Matthias Clasen [Tue, 17 Dec 2013 01:35:23 +0000 (20:35 -0500)]
testtitlebar: Add custom content

This will help in tracking down size allocation issues
in GtkHeaderBar.

12 years agoFix a11y testsuite for about dialog changes
William Jon McCann [Mon, 16 Dec 2013 19:53:30 +0000 (14:53 -0500)]
Fix a11y testsuite for about dialog changes

12 years agogtkapplication: fix inhibit
Ryan Lortie [Mon, 16 Dec 2013 19:37:44 +0000 (14:37 -0500)]
gtkapplication: fix inhibit

The big refactor contained a small mistake that broke inhibiting.  Fix it.

12 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 16 Dec 2013 19:26:50 +0000 (20:26 +0100)]
Updated POTFILES.in

12 years agoRefactor GtkApplication
Ryan Lortie [Mon, 16 Dec 2013 14:32:13 +0000 (09:32 -0500)]
Refactor GtkApplication

gtkapplication.c has turned into a bit of an #ifdef mess over time, and
many of the current checks are incorrect.  As an example, if you build
Gtk for wayland, and exclude the X11 backend, much of the functionality
required by wayland (such as exporting menu models) will be disabled.

Solve that by introducing a backend mechanism to GtkApplication (named
GtkApplicationImpl) similar to the one in GApplication.  Add backends
for Wayland, X11 and Quartz, with X11 and Wayland sharing a common
'DBus' superclass.

                             GtkApplicationImpl
                                      |
                       /--------------+-------------------\
                       |                                  |
            GtkApplicationImplDBus              GtkApplicationImplQuartz
                       |
           /-----------+-----------------\
           |                             |
  GtkApplicationImplX11      GtkApplicationImplWayland

GtkApplicationImpl itself is essentially a bunch of vfuncs that serve as
hooks for various things that the platform-specific backends may be
interested in doing (startup, shutdown, managing windows, inhibit, etc.)

With this change, all platform specific code has been removed from
gtkapplication.c and gtkapplicationwindow.c (both of which are now free
of #ifdefs, except for a UNIX-specific use of GDesktopAppInfo in
gtkapplicationwindow.c).

Additionally, because of the movement of the property-setting code out
of GtkApplicationWindow, the _GTK_APPLICATION_ID properties (and
friends) will be set on non-GtkApplicationWindows, such as dialogs.

https://bugzilla.gnome.org/show_bug.cgi?id=720550

12 years agobloatpad: test inhibit
Ryan Lortie [Sun, 15 Dec 2013 02:36:27 +0000 (21:36 -0500)]
bloatpad: test inhibit

Add an inhibit for logout when there is context in the text buffer.

12 years agoFix up default csd titlebars
Matthias Clasen [Mon, 16 Dec 2013 18:39:36 +0000 (13:39 -0500)]
Fix up default csd titlebars

We were forgetting to show close buttons, and the spacing
was wrong, too.

12 years agoUpdated Hebrew translation
Yosef Or Boczko [Mon, 16 Dec 2013 18:01:36 +0000 (20:01 +0200)]
Updated Hebrew translation

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
12 years agogdkwindow: Handle references in "update_windows" list correctly
Marek Kasik [Thu, 12 Dec 2013 14:02:19 +0000 (15:02 +0100)]
gdkwindow: Handle references in "update_windows" list correctly

Since update_windows list is a static variable in GdkWindow.c which
contains pointers to windows which needs to be updated, it can happen
that it contains a pointer to a window even after quit from a gtk_main().
If another gtk_main() is called in the same process it tries to process
windows in the list which leads to a crash.
Correct reference count handling of added windows prevents such applications
from crash.

https://bugzilla.gnome.org/show_bug.cgi?id=711552

12 years agoabout dialog: add docs for new GtkLicense values
William Jon McCann [Mon, 16 Dec 2013 16:49:02 +0000 (11:49 -0500)]
about dialog: add docs for new GtkLicense values

12 years agoabout dialog: differentiate GPL "or later" versions
William Jon McCann [Mon, 16 Dec 2013 16:06:24 +0000 (11:06 -0500)]
about dialog: differentiate GPL "or later" versions

https://bugzilla.gnome.org/show_bug.cgi?id=720410

12 years agoGtkHeaderBar: Center buttons
Matthias Clasen [Sun, 15 Dec 2013 03:32:11 +0000 (22:32 -0500)]
GtkHeaderBar: Center buttons

Header bars can get taller than the buttons require, and we don't
want them to extend all the way. Center them instead.

12 years agoGtkHeaderBar: fix flipping of window controls
Matthias Clasen [Sat, 14 Dec 2013 23:30:10 +0000 (18:30 -0500)]
GtkHeaderBar: fix flipping of window controls

We were not keepign the separators at the inside.

12 years agoprinting: Add missing strings back for translation
Marek Kasik [Wed, 11 Dec 2013 16:48:17 +0000 (17:48 +0100)]
printing: Add missing strings back for translation

There are string in gtkprintunixdialog.ui marked for translation
which are not in gtkprintunixdialog.ui.h.

https://bugzilla.gnome.org/show_bug.cgi?id=708907

12 years agoprinting: Don't double free connection to CUPS
Marek Kasik [Thu, 12 Dec 2013 17:11:39 +0000 (18:11 +0100)]
printing: Don't double free connection to CUPS

Don't call httpClose() on http connections which are created
outside of GtkCupsRequest in GtkCupsRequest's functions.

https://bugzilla.gnome.org/show_bug.cgi?id=720338

12 years agoScaleButton: make the popup transient to the button's window
Emilio Pozuelo Monfort [Wed, 11 Dec 2013 14:49:08 +0000 (15:49 +0100)]
ScaleButton: make the popup transient to the button's window

Fixes the popup positioning on wayland.

https://bugzilla.gnome.org/show_bug.cgi?id=720256

12 years agoGtkIMContextSimple: Update compose table
Takao Fujiwara [Sat, 19 Oct 2013 14:04:27 +0000 (23:04 +0900)]
GtkIMContextSimple: Update compose table

This adds Multi_key + f + i, as well as other sequences,
mainly Greek.

https://bugzilla.gnome.org/show_bug.cgi?id=710510

12 years agogdkwindow: Use GdkWindowHints instead of guint for flags
Bastien Nocera [Thu, 12 Dec 2013 18:29:03 +0000 (19:29 +0100)]
gdkwindow: Use GdkWindowHints instead of guint for flags

https://bugzilla.gnome.org/show_bug.cgi?id=720342

12 years agoFix a compiler warning
Matthias Clasen [Sat, 14 Dec 2013 01:05:03 +0000 (20:05 -0500)]
Fix a compiler warning

Don't return without a value from a non-void function.

12 years agowindow: Sanitize size hint computation
Benjamin Otte [Sat, 14 Dec 2013 00:15:06 +0000 (01:15 +0100)]
window: Sanitize size hint computation

We don't want the maximum size to be smaller than the minimum size. Not
just because it's wrong but also because when this happens the rest of
GTK gets mighty confused and infloops resizing to min-size and
max-size in turns causing a flickering window. Well, at least if you
run X without a window manager. Or your window manager hasn't finished
starting up.

Private RHEL bug finding this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1035409

12 years agoclipboard: Don't crash when data is requested from NULL window
Benjamin Otte [Fri, 13 Dec 2013 15:22:04 +0000 (16:22 +0100)]
clipboard: Don't crash when data is requested from NULL window

This could happen if data was requested from a separate screen now that
multi-screen is no longer supported.

Ideally, we'd want to support copying to other screens, but that
requires solving in GDK as that's X-specific so cannot be well
abstracted by GDK (without the reintroduction of multiple screens).

https://bugzilla.gnome.org/show_bug.cgi?id=719314